var obj = {
  name: "frank",
  age: 18,
  height: 1.88,
};

var { name, height, age } = obj;
console.log(name, age, height);

var { name: newName } = obj;
console.log(newName);

var { address: newAddress = "北京市" } = obj;
console.log(newAddress);

function foo({ name, age }) {
  console.log(name, age);
}
foo(obj);
